package com.roadjava.rbac.bean.req.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserUpdateReq {
    /**
     * 主键
     */
    @NotNull
    private Long id;
    /**
     * 姓名
     */
    @NotBlank
    private String realName;
    /**
     * 性别,M:男F:女
     * @see com.roadjava.rbac.enums.SexEnum
     */
    @NotBlank
    private String sex;
    /**
     * 头像存放路径,格式如:resources/type/20230523/123.jpg
     */
    private String avatarPath;

    private String email;

    private String phone;
}
